package org.jeecg.modules.rooms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 餐卷设置
 * </p>
 *
 * @author fendo
 * @since 2023-03-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ces_meal_coupon")
public class CesMealCoupon extends Model<CesMealCoupon> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 酒店ID
     */
    private String hotelId;

    /**
     * 名称
     */
    private String name;

    /**
     * 自动发放
     */
    private Boolean autoProvide;

    /**
     * 是否启用
     */
    private Boolean appState;

    /**
     * 开始时间（小时数分钟）
     */
    private String startDate;

    /**
     * 结束时间（同上）
     */
    private String endDate;

    /**
     * 创建时间
     */
    @TableField("createAt")
    private LocalDateTime createAt;

    /**
     * 修改时间
     */
    @TableField("updateAt")
    private LocalDateTime updateAt;


    public static final String ID = "id";

    public static final String HOTEL_ID = "hotel_id";

    public static final String NAME = "name";

    public static final String AUTO_PROVIDE = "auto_provide";

    public static final String APP_STATE = "app_state";

    public static final String START_DATE = "start_date";

    public static final String END_DATE = "end_date";

    public static final String CREATEAT = "createAt";

    public static final String UPDATEAT = "updateAt";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
